package com.edu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * <p>
 * 班级表
 * </p>
 *
 * @author jr
 * @since 2021-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class HfdClassInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 班级表
     */
    @TableId(value = "class_id", type = IdType.AUTO)
    private Integer classId;

    /**
     * 班级名称
     */
    private String name;

    /**
     * 科目表
     */
    private Integer subjectId;

    /**
     * 报名时间
     */
    @JsonFormat( pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date signTime;

    /**
     * 课程开始时间
     */
    @JsonFormat( pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;

    /**
     * 课程结束时间
     */
    @JsonFormat( pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    /**
     * 价格
     */
    private BigDecimal money;

    /**
     * 上课时间
     */
    @JsonFormat( pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date classTime;

    /**
     * 课时
     */
    private Integer classHour;

    //组合班级
    @TableField(exist = false)
    private HfdGradeInfo gradeInfo;

    //组合学科
    @TableField(exist = false)
    private HfdSubjectInfo subjectInfo;

    //组合教师信息
    @TableField(exist = false)
    private List<HfdTeacherInfo> teacherInfoList;


}
